HelpCellsColors = [
    "#FFCCE5",
    "#CCFFFF",
    "#FFFFCC",
    "#CCFFE5",
    "#FFE5CC",
    "#CCFFCC",
    "#FFCCCC",
    "#E5FFCC",
]


HelpCandsColors = [
    "#40E5AF",
    "#4094F5",
    "#B360EF",
    "#DDB045",
    "#96DF49",
    "#77B5FE",
    "#AC86EE",
    "#997854",
]

HelpCandsColors = [
    "#00FA92",
    "#0096FF",
    "#FF9300",
    "#FF40FF",
    "#479FD3",
    # "#0355F1",
    "#00F900",
    "#945200",
    "#9437FF",
]

# HelpCellsColors = HelpCandsColors
HelpCellsColors = [
    "#CCFFFF",
    "#FFFCCC",
    "#CDFFCC",
    "#FFCCCC",
    "#CCE6FF",
    "#E8FFCC",
    "#FDCCFF",
    "#CDCCFF",
]

chosenBg = HelpCellsColors[5]
guessBg = HelpCellsColors[3]
# strongColor = "#ff0000"
# weakColor = "#009f00"
# givenColor = "#0000ff"
# removeColor = "#ff00ff"
# chosenColor = "#00ff00"

# strongColor = "#6600CC"
# weakColor = "#66CC00"
#
# groupColor = "#FF8000"
#
# givenColor = "#004C99"
#
# removeColor = "#FF0000"
# chosenColor = "#00CC00"

strongColor = "#40E5AF"
weakColor = "#B360EF"

groupColor = "#997854"

givenColor = "#2355CE"

removeColor = "#EB512E"
chosenColor = "#729C44"


strongColor = "#0096FF"
weakColor = "#FF9300"

linkGreenColor = "#00FA92"
linkRedColor = "#FF40FF"

groupColor = "#00AF00"

givenColor = "#0074B3"
# givenColor = "#102E76"
# givenColor = "#1941A3"

removeColor = "#FF2600"
chosenColor = "#00AF00"

AllCandColors = HelpCandsColors + [removeColor, chosenColor]


def blend_colors(color1, color2, alpha):

    r1, g1, b1 = int(color1[1:3], 16), int(color1[3:5], 16), int(color1[5:7], 16)
    r2, g2, b2 = int(color2[1:3], 16), int(color2[3:5], 16), int(color2[5:7], 16)

    r = int(r1 * (1 - alpha) + r2 * alpha)
    g = int(g1 * (1 - alpha) + g2 * alpha)
    b = int(b1 * (1 - alpha) + b2 * alpha)

    return f"#{r:02X}{g:02X}{b:02X}"
